<template>

<div class="top">

    <!-- 商家头像 -->
    <van-image class="customer-avatar" round src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg" />

<!-- 商家信息 -->
<div class="customer-info">
    <h2 class="customer-name">张三</h2>

    <div class="container"> 
        <span style="margin-left: 4px;">配送费6元</span>
        <span style="margin-left: 4px;"><van-icon name="location" color="#1989fa" />距您11KM</span>
    </div>
</div>
</div>


<div class="user-center">  
    <van-cell title="用户名" value="张三" />  
    <van-cell title="手机号" value="13800138000" />  
    <van-cell title="邮箱" value="zhangsan@example.com" />  
  
  
  </div>  

 

</template>

<style scoped>


.customer-detail {
    padding: 10px 10px 0 10px;
    width: 355px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 4px;

    margin-top: 10px;
    margin-bottom: 10px;
}

.top {

    display: flex;
    flex-direction: row;
    align-content: center;
}

  .customer-avatar {
    width: 60px;
    height: 60px;
    margin-right: 4px;
}

.customer-info {
    flex: 1;
}

.customer-info .customer-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.customer-info .container {
    display: flex;
    align-items: baseline;
    line-height: 14px;
    font-size: 14px;
}
 
</style>
